class Desk{
    render(){
        console.log("desk->render");
    }
}
class Box extends Desk{
    render(){
        console.log("Box->render");
        super.render();
    }
}
const obj = new Box();
obj.render();

